<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class AuthorizeNetARB</title>
			<link rel="stylesheet" href="../../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class AuthorizeNetARB</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
													<a href="#sec-vars">Vars</a>
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
											<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
						
			</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">A class to send a request to the ARB XML API.</p>
		<p class="notes">
			Located in <a class="field" href="_lib---AuthorizeNetARB.php.html">/lib/AuthorizeNetARB.php</a> (line <span class="field">17</span>)
		</p>
		
				
		<pre><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html">AuthorizeNetRequest</a>
   |
   --AuthorizeNetARB</pre>
	
			</div>
</div>


	<a name="sec-const-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Class Constant Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Constants</span> (<a href="#sec-consts">details</a>)
												<a href="#sec-vars">Vars</a>
				 
				|
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<div class="const-summary">
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#LIVE_URL" title="details" class="const-name">LIVE_URL</a> = 					<span class="var-type"> &quot;https://api.authorize.net/xml/v1/request.api&quot;</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#SANDBOX_URL" title="details" class="const-name">SANDBOX_URL</a> = 					<span class="var-type"> &quot;https://apitest.authorize.net/xml/v1/request.api&quot;</span>

				</div>
							</div>
		</div>
	</div>


	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
															<a href="#sec-vars">Vars</a>
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																				
												<div class="method-definition">
											<span class="method-result"><a href="../../AuthorizeNet/AuthorizeNetARB/AuthorizeNetARB_Response.html">AuthorizeNetARB_Response</a></span>
										<a href="#cancelSubscription" title="details" class="method-name">cancelSubscription</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$subscriptionId</span>)
									</div>
																<div class="method-definition">
											<span class="method-result"><a href="../../AuthorizeNet/AuthorizeNetARB/AuthorizeNetARB_Response.html">AuthorizeNetARB_Response</a></span>
										<a href="#createSubscription" title="details" class="method-name">createSubscription</a>
											(<span class="var-type"><a href="../../AuthorizeNet/AuthorizeNetARB/AuthorizeNet_Subscription.html">AuthorizeNet_Subscription</a></span>&nbsp;<span class="var-name">$subscription</span>)
									</div>
																<div class="method-definition">
											<span class="method-result"><a href="../../AuthorizeNet/AuthorizeNetARB/AuthorizeNetARB_Response.html">AuthorizeNetARB_Response</a></span>
										<a href="#getSubscriptionStatus" title="details" class="method-name">getSubscriptionStatus</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$subscriptionId</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setRefId" title="details" class="method-name">setRefId</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$refId</span>)
									</div>
																<div class="method-definition">
											<span class="method-result"><a href="../../AuthorizeNet/AuthorizeNetARB/AuthorizeNetARB_Response.html">AuthorizeNetARB_Response</a></span>
										<a href="#updateSubscription" title="details" class="method-name">updateSubscription</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$subscriptionId</span>, <span class="var-type"><a href="../../AuthorizeNet/AuthorizeNetARB/AuthorizeNet_Subscription.html">AuthorizeNet_Subscription</a></span>&nbsp;<span class="var-name">$subscription</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#_getPostUrl" title="details" class="method-name">_getPostUrl</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result"><a href="../../AuthorizeNet/AuthorizeNetARB/AuthorizeNetARB_Response.html">AuthorizeNetARB_Response</a></span>
										<a href="#_handleResponse" title="details" class="method-name">_handleResponse</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$response</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#_setPostString" title="details" class="method-name">_setPostString</a>
										()
									</div>
								</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
												<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
										<h4>Inherited Variables</h4>
				<A NAME='inherited_vars'><!-- --></A>
									<p>Inherited from <span class="classname"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html">AuthorizeNetRequest</a></span></p>
					<blockquote>
													<span class="var-title">
								<span class="var-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#var$VERIFY_PEER">AuthorizeNetRequest::$VERIFY_PEER</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#var$_api_login">AuthorizeNetRequest::$_api_login</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#var$_log_file">AuthorizeNetRequest::$_log_file</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#var$_post_string">AuthorizeNetRequest::$_post_string</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#var$_sandbox">AuthorizeNetRequest::$_sandbox</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#var$_transaction_key">AuthorizeNetRequest::$_transaction_key</a></span><br>
							</span>
											</blockquote> 
										
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-vars">Vars</a>
																			<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
										<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="methodcancelSubscription" id="cancelSubscription"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">cancelSubscription</span> (line <span class="line-number">87</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Cancel a subscription</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../AuthorizeNet/AuthorizeNetARB/AuthorizeNetARB_Response.html">AuthorizeNetARB_Response</a></span>
		<span class="method-name">
			cancelSubscription
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$subscriptionId</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$subscriptionId</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcreateSubscription" id="createSubscription"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">createSubscription</span> (line <span class="line-number">43</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Create an ARB subscription</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../AuthorizeNet/AuthorizeNetARB/AuthorizeNetARB_Response.html">AuthorizeNetARB_Response</a></span>
		<span class="method-name">
			createSubscription
		</span>
					(<span class="var-type"><a href="../../AuthorizeNet/AuthorizeNetARB/AuthorizeNet_Subscription.html">AuthorizeNet_Subscription</a></span>&nbsp;<span class="var-name">$subscription</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"><a href="../../AuthorizeNet/AuthorizeNetARB/AuthorizeNet_Subscription.html">AuthorizeNet_Subscription</a></span>
				<span class="var-name">$subscription</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetSubscriptionStatus" id="getSubscriptionStatus"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getSubscriptionStatus</span> (line <span class="line-number">73</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get status of a subscription</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../AuthorizeNet/AuthorizeNetARB/AuthorizeNetARB_Response.html">AuthorizeNetARB_Response</a></span>
		<span class="method-name">
			getSubscriptionStatus
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$subscriptionId</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$subscriptionId</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetRefId" id="setRefId"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">setRefId</span> (line <span class="line-number">31</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Optional. Used if the merchant wants to set a reference ID.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setRefId
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$refId</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$refId</span>			</li>
				</ul>
		
			
	</div>
<a name="methodupdateSubscription" id="updateSubscription"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">updateSubscription</span> (line <span class="line-number">58</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Update an ARB subscription</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../AuthorizeNet/AuthorizeNetARB/AuthorizeNetARB_Response.html">AuthorizeNetARB_Response</a></span>
		<span class="method-name">
			updateSubscription
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$subscriptionId</span>, <span class="var-type"><a href="../../AuthorizeNet/AuthorizeNetARB/AuthorizeNet_Subscription.html">AuthorizeNet_Subscription</a></span>&nbsp;<span class="var-name">$subscription</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$subscriptionId</span>			</li>
					<li>
				<span class="var-type"><a href="../../AuthorizeNet/AuthorizeNetARB/AuthorizeNet_Subscription.html">AuthorizeNet_Subscription</a></span>
				<span class="var-name">$subscription</span>			</li>
				</ul>
		
			
	</div>
<a name="method_getPostUrl" id="_getPostUrl"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">_getPostUrl</span> (line <span class="line-number">109</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			_getPostUrl
		</span>
				()
			</div>
	
		
			<hr class="separator" />
		<div class="notes">Redefinition of:</div>
		<dl>
			<dt><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#method_getPostUrl">AuthorizeNetRequest::_getPostUrl()</a></dt>
						<dd>Get the post url. We need this because until 5.3 you  you could not access child constants in a parent class.</dd>
					</dl>
			
	</div>
<a name="method_handleResponse" id="_handleResponse"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">_handleResponse</span> (line <span class="line-number">101</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../AuthorizeNet/AuthorizeNetARB/AuthorizeNetARB_Response.html">AuthorizeNetARB_Response</a></span>
		<span class="method-name">
			_handleResponse
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$response</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$response</span>			</li>
				</ul>
		
			<hr class="separator" />
		<div class="notes">Redefinition of:</div>
		<dl>
			<dt><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#method_handleResponse">AuthorizeNetRequest::_handleResponse()</a></dt>
						<dd>Handle the response string</dd>
					</dl>
			
	</div>
<a name="method_setPostString" id="_setPostString"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">_setPostString</span> (line <span class="line-number">117</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Prepare the XML document for posting.</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			_setPostString
		</span>
				()
			</div>
	
		
			<hr class="separator" />
		<div class="notes">Redefinition of:</div>
		<dl>
			<dt><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#method_setPostString">AuthorizeNetRequest::_setPostString()</a></dt>
						<dd>Set the _post_string</dd>
					</dl>
			
	</div>
							<h4>Inherited Methods</h4>
				<a name='inherited_methods'><!-- --></a>	
									<!-- =========== Summary =========== -->
					<p>Inherited From <span class="classname"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html">AuthorizeNetRequest</a></span></p>
					<blockquote>
													<span class="method-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#method__construct">AuthorizeNetRequest::__construct()</a></span><br>
													<span class="method-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#methodgetPostString">AuthorizeNetRequest::getPostString()</a></span><br>
													<span class="method-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#methodsetLogFile">AuthorizeNetRequest::setLogFile()</a></span><br>
													<span class="method-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#methodsetSandbox">AuthorizeNetRequest::setSandbox()</a></span><br>
													<span class="method-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#method_getPostUrl">AuthorizeNetRequest::_getPostUrl()</a></span><br>
													<span class="method-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#method_handleResponse">AuthorizeNetRequest::_handleResponse()</a></span><br>
													<span class="method-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#method_sendRequest">AuthorizeNetRequest::_sendRequest()</a></span><br>
													<span class="method-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#method_setPostString">AuthorizeNetRequest::_setPostString()</a></span><br>
											</blockquote>
										
		</div>
	</div>

	<a name="sec-consts"></a>
	<div class="info-box">
		<div class="info-box-title">Class Constants</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Constants</a> (<span class="disabled">details</span>)
						
			
												<a href="#sec-vars">Vars</a>
														| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<a name="constLIVE_URL" id="LIVE_URL"><!-- --></A>
<div class="evenrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">LIVE_URL</span>
			 = <span class="const-default"> &quot;https://api.authorize.net/xml/v1/request.api&quot;</span>
			(line <span class="line-number">20</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
</div>
<a name="constSANDBOX_URL" id="SANDBOX_URL"><!-- --></A>
<div class="oddrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">SANDBOX_URL</span>
			 = <span class="const-default"> &quot;https://apitest.authorize.net/xml/v1/request.api&quot;</span>
			(line <span class="line-number">21</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
</div>
						
		</div>
	</div>

	<p class="notes" id="credit">
		Documentation generated on Thu, 21 Oct 2010 17:30:58 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>